package com.aiti.lulian.service;

import com.aiti.base.core.base.service.BaseService;
import com.aiti.base.core.utils.message.Message;
import com.aiti.lulian.bo.CustomerFollowUpRecordBo;
import com.aiti.lulian.entity.CustomerFollowUpRecord;
import com.aiti.lulian.vo.CustomerFollowUpRecordVo;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import java.util.List;
import java.util.Map;

public interface ICustomerFollowUpRecordService extends BaseService<CustomerFollowUpRecord> {

    /**
     * 查询客户的跟进记录
     * @param bo 前端传入的参数
     * @return 跟进的记录
     */
    Map<String,Object> queryCustomerList(Page<CustomerFollowUpRecord> page, CustomerFollowUpRecordBo bo);

    /**
     * 新增跟进记录
     * @param bo 参数
     */
    boolean addFollowUpRecord(CustomerFollowUpRecordBo bo);

    /**
     * 查询某个记录的详情
     * @param bo 参数
     * @return 结果
     */
    CustomerFollowUpRecordVo queryCustomerFollowUpRecordDetail(CustomerFollowUpRecordBo bo);

    /**
     * 更新根进记录
     * @param bo 参数
     * @return 结果
     */
    boolean editCustomerFollowUpRecord(CustomerFollowUpRecordBo bo);

    boolean deleteShangJiFollowUpRecord(CustomerFollowUpRecordBo bo);

    List<CustomerFollowUpRecordVo> getCustomerFollowUpRecordList(Page<CustomerFollowUpRecord> page, CustomerFollowUpRecordBo bo);

    Message deleteCustomerFollowUpRecord(String[] baseIds);
}
